package com.app.common.util;

import android.app.Activity;
import android.content.Context;
import android.util.Log;
import android.view.WindowManager;

/**
 * Created by zhoulikai on 17/2/25.
 */

public class Tools {


    public static int[] getScreenSize(Activity activity) {
        WindowManager wm = activity.getWindowManager();
        int size[] = new int[2];
        int width = wm.getDefaultDisplay().getWidth();
        int height = wm.getDefaultDisplay().getHeight();
        size[0] = width;
        size[1] = height;
        return size;

    }


}
